package webEquipeRechercheGwt.server.webEquipeRechercheServices;

import java.util.Collection;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import webEquipeRechercheGwt.client.entityMirror.PaperMirror;
import webEquipeRechercheGwt.client.services.PaperService;
import webEquipeRechercheGwt.server.rmiManager.RmiManager;

public class PaperServiceImpl extends RemoteServiceServlet implements PaperService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4173128763239215600L;

	@Override
	public Collection<PaperMirror> getPapers() {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().getPapersMirrors();
	}

	@Override
	public boolean createPaper(PaperMirror newPaper) {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().createPaper(newPaper);
	}

}
